package edu.ucla.cs.typecast.ping;

import java.io.*;
import java.net.*;

public interface PingSender extends Serializable {
	/**
	 * Send a ping to ping receivers.
	 * 
	 * @param seqNum
	 * @throws IOException
	 */
	
	public void ping(int seqNum) throws IOException;
	
	/**
	 * Receive a pong from ping receivers.
	 * 
	 * @param senderHost
	 * @param senderPort
	 * @param seqNum
	 * @throws IOException
	 */
	
	public void receivePong(InetAddress senderHost, int senderPort, int seqNum) throws IOException;
}
